Before we begin, let's take a look at the
project objectives. Learn to complete a non-trivial
task end-to-end yourself by applying all the skills and knowledge you have
learned so far. From problem understanding
to design, development, testing, review and
refactor, and integration. Implement all the knowledge
you have gained in the past weeks and surprise yourself by how far you've come. Here's the introduction
of project dgStories a digital storybook. We all live in a fast-paced, constantly changing world that revolves around technology. Life goes by in the
blink of an eye, and our memories fade
more and more each day. However, we as humans
have an urge to preserve our memories and tell
our stories in the future. Earlier photo albums were the
special items in our lives, especially because each
album is filled with unique, individual photos that tell a story and reflect a moment
you would like to remember. But now, technology has evolved, transforming all
our physical items into a digital format. dgStories is an app that can help users
conveniently author and preview stories to preserve memories and relive treasured
moments of the past. Throughout this project, you will do the following as a user. Register with dgStories,
login with dgStories. Create a new story
for authoring. Author a story with text, image, and video components. Style story components
with color, font, position, and order. Edit and delete
existing stories, preview existing stories in
reverse chronological order. The development process
of dgStories can be broken down into
milestones as follows. Author user story,
preview user story. Your first milestone will
be an author user story, in which users should
create stories to capture and store memories
in a multimedia format. Stories will be designed on an editable interface
or a canvas. Stories will comprise any of the following text,
image or video. Stories will contain these
components in a stacked order. Users should be allowed to style the story components
with colors and fonts. Stories should be persistent for later access to preview,
edit, and delete. Your second milestone will
be a preview user story, in which users should be allowed to view the persistent stories. Stories should be displayed in reverse chronological order. Stories should be
in a list format, one below the other, or in a grid format based
on the user's choice. As a developer, you should
first plan your work. Planning includes
determining what all tasks should be performed
for designing solutions for each milestone. You need to create prototypes
in the post-planning stage. In the design stage, you are expected to
create data models for developing a single-page
application or SPA. Break down the SPA into components and create
a component hierarchy. Identify routes to navigate to various parts of
the application. Identify test cases
that will help to test the units of code and ensure they meet the stated
requirements. Post the design stage, you can start building code
and then submit the code. Once the first milestone
of dgStories is reached, you should proceed with
the next milestone. Create prototypes. By prototyping,
you can show users how the program interface
will look and work. By prototyping,
developers can capture user feedback early and
model user interfaces. A prototype should
be built using the GUI tool pencil as a first step to
developing the solution. You can download the GUI
tool from the following URL. Create data models. Using data models, you can focus on what data is required and how to organize it. Data models can be compared to a roadmap an architect's
blueprint or any other formal diagram that provides insight into
what is being designed. Design a component hierarchy. It is essential to break the
application into components, to build a SPA. To design a component hierarchy, break layout into components, generate a component hierarchy. Design navigation
workflow. In a SPA, navigation takes
place between views. To create a SPA enabled with
navigation, define routes, define nested routes, identify
routes with parameters, create a default route, define routes to
handle invalid URLs. Develop test code. Unit testing components
help developers detect bugs in code
at an early stage. It also helps to
add new features without breaking
the existing code. Design implementation. Design implementation should
be done as the last step. The quality of code
should be maintained by writing a well-indented code, adding comments to
support the code, removing unused
variables and imports. While performing the
project exercise, you must ensure that
design documents should be saved in a separate folder
outside the source code. The solution should be developed
using the React library. Design principles such as single responsibility
principle or SRP, and do not repeat
yourself or DRY, should be followed
while building a component hierarchy for
single-page application or SPA. Forms should be used
to capture user inputs and should be adequately
supported with validations. Routes in SPA
should be developed using the library
react-router-dom. The use of the material user
interface, or MUI library, is suggested to implement material design while
styling components. Write the test code for components by using
the Jest framework, custom hooks, by using the
React Hooks testing library. As backends support, JSON server should be used with the data stored
in the.json file. The Axios library
can be used to make REST API calls to json
server for accessing data. For the submission
of your project, please follow these
instructions. The solution code should be zipped and then uploaded
for submission. The zipped code should exclude
the folder node modules. The solution code should
contain the readme.md files that provide details
for executing the project. The detail should include
project objective, tech stack used list
of commands to run, JSON server,
application, test cases.